package vaccine.appointment.system.appointmentrecord.mq;

import org.springframework.amqp.core.Message;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;

@RabbitListener(queues = "OverdueReminderQueue")
public class Consumer {

    @RabbitHandler
    public void overdueReminderHandler(Message message) {
        //首先查看消息是否合法

        //合法则发送消息，不合法则不发送消息

    }
}
